<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>主页面轮播图</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

<!--    &lt;!&ndash;1.引入bootstrap样式框架；&ndash;&gt;
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">

    &lt;!&ndash;3.引入bootstrap中的Jquery框架；&ndash;&gt;
    <script src="bootstrap/js/jquery.min.js"></script>
    &lt;!&ndash;4.引入bootstrap中的Js框架；&ndash;&gt;
    <script src="bootstrap/js/bootstrap.min.js"></script>-->

</head>
<body>

<div id="myCarousel" class="carousel slide" >
    <!-- 轮播（Carousel）指标 -->
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
        <li data-target="#myCarousel" data-slide-to="3"></li>
    </ol>
    <!-- 轮播（Carousel）项目 -->
    <div class="carousel-inner">
        <div class="item active">
            <img src="../imgs/ind1.jpg" alt="First slide">
            <div class="carousel-caption">转账</div>
        </div>
        <div class="item">
            <img src="../imgs/ind2.jpg" alt="Second slide">
            <div class="carousel-caption">支付</div>
        </div>
        <div class="item">
            <img src="../imgs/ind3.jpg" alt="Third slide">
            <div class="carousel-caption">广告</div>
        </div>
        <div class="item">
            <img src="../imgs/ind4.jpg" alt="Third slide">
            <div class="carousel-caption">信用卡</div>
        </div>
    </div>
    <!-- 轮播（Carousel）导航 -->
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>

<script>

    $(function () {
        $('.carousel').carousel({
            interval: 5000
        })
    })
</script>

</body>
</html>